/*
 * 文件名：GlobalStaticEntity.java	 
 * 时     间：下午5:48:31
 * 作     者：Administrator       
 * 版     权： 2012-2022 湖南智软网络科技, 公司保留所有权利.
 * 联     系：http://www.073586.com/
 */
package com.local.manager.locks;

import com.local.service.face.LocalRepeatImportService;
import com.qianhai.common.spring.utils.SpringContextUtil;


/** 
 * 类描述:这里是类描述
 * @ClassName: GlobalStaticEntity 
 * @author Administrator
 * @date 2016年5月20日 下午5:48:31 
 */
public class RepeatStaticEntity
{
	private static RepeatStaticEntity instance;
	
	private static Boolean repeatStaticLock;
	
	
	private RepeatStaticEntity()
	{
		LocalRepeatImportService lr=SpringContextUtil.getApplicationContext().getBean(LocalRepeatImportService.class);
		repeatStaticLock=lr.queryLocalRepeatImportStatus();
	}
	
	public static RepeatStaticEntity instance()
	{
		if (null == instance)
		{
			instance = new RepeatStaticEntity();
		}
		return instance;
	}

	public static Boolean getRepeatStaticLock()
	{
		return repeatStaticLock;
	}

	public static void setRepeatStaticLock(Boolean repeatStaticLock)
	{
		RepeatStaticEntity.repeatStaticLock = repeatStaticLock;
	}
	
}
